<?php 
session_start();
$_SESSION['member'];
$array = unserialize($_SESSION['member']);
include_once('function.php');
$db=new db(); 
$sql = $array;
$file ="member";
$map=array("會員帳號",'會員姓名','性別','生日','職業','手機','信箱','身份證','電話','地址','1=房客,2=房東,3=黑名單','註冊時間');//表头 
$db->toExcel($sql,$map,$file); 
?>